from typing import *


class Solution:
    def maxOperations(self, nums: List[int]) -> int:
        ans, s, i = 1, sum(nums[:2:]), 2
        while i + 1 < len(nums) and nums[i] + nums[i + 1] == s:
            ans += 1
            i += 2
        return ans


s = Solution()
print(s.maxOperations([2, 2, 3, 2, 4, 2, 3, 3, 1, 3]))
